<template>
    <h2>支付成功！！！！</h2>
    <button @click="$router.push('/')">跳转首页</button>
</template>
<script setup>
import { useCounterStore } from '@/stores/counter'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
const store = useCounterStore()
const route = useRoute()
onMounted(() => {
    store.updateOrderStatus(route.query.out_trade_no)
})

</script>